package cn.cjp.day03;

public class UseMath {

    public static void main(String[] args) {
        System.out.println(Math.abs(-3));//绝对值
        System.out.println(Math.ceil(3.14));//向上取整
        System.out.println(Math.floor(3.14));//向下取整
        System.out.println(Math.round(3.14));//四舍五入

        //Math.PI代表圆周率
        System.out.println(Math.PI);
    }
}
